*** mulbah07 has quit (Remote host closed the connection) | 13:27 | |
mulbah07 | Good morning Mr. Cole | 13:27 |
---|---|---|
mulbah07 | I hope you are doing good | 13:28 |
ubuntourist | Hi | 13:29 |
ubuntourist | I stepped away after I started Hexchat. | 13:29 |
mulbah | okay | 13:30 |
ubuntourist | I recently got the newest COVID vaccine. A bit tired but otherwise good. How are you? | 13:31 |
mulbah | I was not feeling well these few day but I'm trying now | 13:31 |
ubuntourist | I hope you feel better soon. Last week we went a bit long. Let's try to keep today a bit shorter. | 13:32 |
mulbah | Alright | 13:33 |
ubuntourist | Anything new and interesting to report? | 13:33 |
mulbah | yeah | 13:33 |
ubuntourist | ACTION eagerly awaits... | 13:34 |
ubuntourist | ACTION continues to wait... | 13:37 |
mulbah | I was going over Searching and analying text in linux | 13:38 |
mulbah | In linux Searching and analyzing text in can be done using a variety of powerful command-line tools. | 13:39 |
mulbah | Such as grep, awk, sed cut, sort, uniq, wc, and find | 13:40 |
ubuntourist | We talked about several of these. Very useful. I think the most useful things to learn, in order: | 13:41 |
mulbah | we can demonstrate these command using the terminal | 13:41 |
ubuntourist | 1. keyboard skills and shortcuts. | 13:41 |
ubuntourist | 2. a good editor -- and as many of its commands as possible. (I like emacs, Jeff likes vim, and there are others) | 13:42 |
ubuntourist | 3. ls, find and man -- for finding filees and information | 13:43 |
ubuntourist | 4. All o those tools: grep, awk, sed... | 13:43 |
ubuntourist | If you took good notes, we worked with grep, cut, wc, ls, cat, tac, rev, and maybe a few more. | 13:44 |
mulbah | yeah | 13:44 |
mulbah | we work with them | 13:44 |
ubuntourist | All of those -- keyboard shortcuts, editors, annd the search and analyze tools will be your best friends as a sys admin. | 13:46 |
ubuntourist | Before we start up your tmate, I wanted to show you the difference between my display and yours. | 13:48 |
ubuntourist | I want to try an experiment: open two terminal windows (and try not to resize them after you pick a size you like. | 13:49 |
ubuntourist | I would recommend staying with 80-characters by 20 to 24 lines.) | 13:50 |
mulbah | okay | 13:50 |
ubuntourist | In one terminal start tmate. In the other terminal, join the tmate that I start. I think we will both be able to see each other's computer at the same time. | 13:51 |
ubuntourist | to join mine: | 13:52 |
ubuntourist | ssh GFmesP9p925LLbXMG5pFjR6yL@nyc1.tmate.io | 13:52 |
mulbah | ssh Sfphvch5Wzyuy6FaG3fJAU52G@lon1.tmate.io | 13:52 |
ubuntourist | Network dying? | 14:02 |
ubuntourist | Network dying? | 14:03 |
mulbah07 | yeah the problem is from the GSM company we get here in liberia | 14:03 |
*** mulbah has quit (Read error: Connection reset by peer) | 14:03 | |
mulbah07 | I have enough data | 14:04 |
mulbah07 | It has set let continue | 14:04 |
mulbah07 | sorry for that just now | 14:05 |
ubuntourist | "Q" when you are ready, in both terminnals | 14:10 |
ubuntourist | (lower case "q" but I donn't think it matters.) | 14:10 |
mulbah07 | The difference Is down | 14:10 |
mulbah07 | the sentence are not the same | 14:11 |
ubuntourist | Well, one thing is we are using different distros which means different versions of some applications. | 14:12 |
ubuntourist | So, slightly different documentation. But I was focusing on the color at the bottom. Same text. Different displaying. | 14:13 |
ubuntourist | Yours showed up as italics in my window. Mine showed up as reverse colors: black text on a white background. | 14:14 |
mulbah07 | yeah | 14:15 |
mulbah07 | I just take a good look at it | 14:15 |
ubuntourist | To me, that suggests either a different environment variable, or a different terminal setting. | 14:16 |
ubuntourist | So, switching back to analyse... | 14:17 |
tboimah | Good day ubuntourist and mulbah07 | 14:20 |
mulbah07 | Good day tboimah | 14:21 |
ubuntourist | Hi tboimah | 14:23 |
ubuntourist | mulbah07, stumped again. | 14:24 |
tboimah | I am Good long time ubuntourist | 14:24 |
ubuntourist | I cannot determine the difference. One more attempt. | 14:24 |
ubuntourist | tboimah, yeah. | 14:25 |
tboimah | I Hope you are Good | 14:25 |
tboimah | Anyway I will have to leave you for mulbah07 now I will be following. | 14:26 |
ubuntourist | tboimah, yeah all good. | 14:26 |
ubuntourist | mulbah07, I'm going to give up on that and go back to showing the color differences w/ most. | 14:27 |
mulbah07 | Alright | 14:27 |
ubuntourist | mulbah07, We're going to reset the pager back to most and look at the "man grep" again. | 14:28 |
ubuntourist | I'm trying to analyze why mine looks better. | 14:29 |
ubuntourist | notice there are two files in the "most" pacakge that end in "rc". | 14:32 |
ubuntourist | lesskeys.rc and mostrc | 14:32 |
ubuntourist | "rc" files are similar to "ini" or "conf" files. They set default configurations for applications. | 14:33 |
ubuntourist | So, we will look at those to see what differences exist between yours and mine. | 14:34 |
mulbah07 | Alright | 14:34 |
ubuntourist | So. The color settings were the same... | 14:37 |
ubuntourist | Maybe I have customized mine. Those were the defaults (and in the documentation directory. So really just examples.) | 14:38 |
ubuntourist | Wow. I'm sumped. Yours is actually newer than mine | 14:41 |
ubuntourist | I thought maybe I was using a custom "most" but my modifications were not about color. | 14:44 |
ubuntourist | Time to give up. Go ahead and show off. | 14:44 |
mulbah07 | Mr. code I'm working on some bash script | 14:45 |
mulbah07 | I will like for you to take a look at | 14:45 |
mulbah07 | Mr. Cole you still there | 14:47 |
ubuntourist | mulbah07, Yes. show me. | 14:48 |
ubuntourist | OK.... So, you built up some functions. Cool. | 14:50 |
mulbah07 | it show information about the system | 14:51 |
mulbah07 | I have two more function I'm working on | 14:51 |
ubuntourist | Last week we talked about using ~/.local/bin/ | 14:52 |
mulbah07 | yeah | 14:53 |
ubuntourist | Putting it in /usr/local/bin/ will make the sysinfo script availabe to all users. And maybe that is your intent. | 14:54 |
ubuntourist | But sometimes you only want the tool for yourself. Or, if you a user who is not a sys admin, you cannot use sudo. So, for those | 14:55 |
ubuntourist | situations, ~/.local/bin/ would be the choice. | 14:55 |
mulbah07 | Alright | 14:55 |
mulbah07 | if you still have time I can show you the other two script | 14:56 |
ubuntourist | (I am the only person who uses my laptop. So, for me, it does ot matter which of those choices I decide on. I usually use ~/.local/bin/) | 14:57 |
ubuntourist | mulbah07, go ahead and show your others. Then we quit for today. | 14:57 |
mulbah07 | I'm still working on it put I just want show you it | 14:58 |
ubuntourist | ok | 14:59 |
tboimah | ACTION signing off | 15:02 |
*** tboimah has quit (Quit: Leaving) | 15:02 | |
ubuntourist | First the source location, then the destination | 15:06 |
ubuntourist | Right. | 15:06 |
ubuntourist | tab completion | 15:06 |
ubuntourist | Look at the error message first! | 15:07 |
mulbah07 | I'm still working on it | 15:11 |
ubuntourist | Ah. OK. | 15:11 |
mulbah07 | I havn't complete it yet | 15:11 |
mulbah07 | I will work on it and send it to you as a mail | 15:11 |
mulbah07 | My computer will soon go off | 15:12 |
ubuntourist | Then DEFINITELY DON'T use /usr/local/bin or run as root! Not until you're SURE it works. | 15:12 |
ubuntourist | OK. | 15:12 |
ubuntourist | I should run too. Bye! | 15:13 |
*** ubuntourist has quit (Quit: Leaving) | 15:15 | |
*** mulbah07 has quit (Read error: No route to host) | 15:17 | |
*** mulbah07 has quit (Ping timeout: 480 seconds) | 23:17 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!