Bash Automation and Scripting Basics (Part 3)

We also want to quickly debug our scripts with minimal fuss and high-end results. This can be done using a very handy tracing feature, build directly into the Bash command interpreter. We’ll look into this in the second topic. You may also want to keep an eye out for our upcoming article on the related shellcheck. And finally we will explore how to run scripts as a background process. Script Debugging Debugging a script in Bash need not be hard!...

February 23, 2021 · 2 min · 307 words · Tracy Moore

Bash Automation and Scripting Basics (Part 2)

There is, and in the second topic below we’ll dive into this. It depends to a good extent on developer preference. Both mini-scripts result in the same empty output, astrueis notuntrue. And this is justonedeveloper writing it inhis way. From these examples it is clear that your mileage will vary over time. sleep 1 # First sleep sleep 1 # Second sleep Single Quotes or Double Quotes? For the second example however, the output isHello world....

February 22, 2021 · 1 min · 119 words · Katherine Zavala

Bash Automation & Scripting Basics (Part 1)

Bash is ideal for such automation. This series will get you started! What IsBash automation? The Bash shell is a powerful Linux shell which allows in-depth automation of repetitive tasks. Bash is also a scripting and coding language that grows on you. I have been actively coding in Bash since 2012 and have used it much longer then that. Bash also lends itself to many different software domains and use cases....

February 19, 2021 · 2 min · 249 words · Christina Crane

How to Hibernate or Sleep Linux From the Command Line

Related Quick Links Hibernating and sleeping is for bears and computers alike! A sleep state is very similar, though the power will not be completely taken away. Such wake events can usually be configured from within the BIOS. These levels are built into the kernel and the availability of them depend on the operating system being used. The levels areSuspend-To-Idle(aptly nameds2idleorfreeze), Suspend-To-Memory (memor more correctlydeep) and Suspend-To-Disk (disk). Your system may also support a Standby (...

February 17, 2021 · 2 min · 263 words · Anthony Lambert

Swapping File Managers in Mint 20

Related Quick Links This article discusses swapping file managers in Mint 20. What Is aFile Manager? are gone until you restart the process or kickstart your machine. On Linux, there is much more freedom. Mint 20 is a great Linux operating system, and a worthy alternative to using Microsoft Windows. Mint 20 Cinnamon is released with thenemofile manager. This file manager is based on the popularNautilusfile manager which is in turn the default in Ubuntu....

February 15, 2021 · 1 min · 212 words · Margaret Mccall

How To Use Gpick, a GUI Color Picker & Selection Tool for Ubuntu and Mint

Related Quick Links What is that color on the edge of that system? Or Maroon, Burgundy or Bordeaux? Having a GUI (Desktop) based color picker is always handy! Find out how to install one that works and works well. What Is aColor Picker? A color picker can come in very handy here. Shutterstock/Radu Bercan This is where an external color picker app can shine. There is lots of options, things to click and things to explore....

February 12, 2021 · 1 min · 162 words · Brenda Baker

Amazon Prime Includes a Bunch of Free, Live TV Channels You May Not Know About

It’s far from a wasteland. it’s possible for you to find them atamazon.com/gp/video/epg. Note that the availability of the channels will almost certainly differ based on your country.

February 10, 2021 · 1 min · 28 words · Kayla Williams

How to Use case .. esac Statements in Bash

Related Quick Links In this tutorial we look at Bash case based conditional statements. Yet another set of languages (like C#, C++, Java and JavaScript) call this aswitchorswitch/casestatement. All these have similar meanings and operations. Let’s build our firstcase .. esacstatement using a simple script. “;; echo “Option was 2! Note that there are two;end-of-statement terminators at the end of each line. We can see how we have defined code for both the cases where1and2are passed to the script, respectively....

February 9, 2021 · 1 min · 189 words · Nicolas Zuniga

Exporting Variables in Bash: the Why and How

It is exactly in these types of situations that exporting shell variables becomes of interest. What Is aBash subshell? If the master process/shell terminates, so will the subshell running within it. We can verify the same by checking what sort of processes are live. First, we discover the PID (process ID) of our current (sub-)shell. We can do so by inspecting the$$variable withecho. The PID is 362827. This allows us to backtrack as far as we can or like to go....

February 3, 2021 · 2 min · 330 words · Cynthia Morales

Farewell to the Pixel Slate, the Tablet Even Google Forgot

Related Google’s made a lot of tablets, starting with the Nexus 7 back in 2012. This weekend the Pixel Slate, once Google’s top-of-the-line machine,disappeared from its official web store. It’s probably never coming back. But the loss of the Slate is particularly jarring to Google software fans like me. The price,starting at $600 for a rather dinky Celeron model, surely didn’t help. I picked mine up in ablink-and-you’ll-miss-it fire sale from Best Buy....

February 1, 2021 · 1 min · 73 words · Joseph Jimenez

Primer: Bash Loops: for, while, and until

Related Quick Links Most programming languages support various forms of looping code lines. Bash natively supports ‘while’ loops, ‘until’ loops and the most well-known, ‘for’ loops. This article introduces and discusses all three. Shutterstock/ jeep5d What AreBash Loops? To define this a little better, we should start with the questionwhat are loops. Loops are a programming language construct, allowing a developer to repeat (i.e. loop) certain parts, or all, of the code inside such a loop definition....

February 1, 2021 · 2 min · 302 words · Jessica Vega

Bash Process Termination Hacks

This article will show you how. What Is aBash Process? A Bash process is simply an executable which is running. For example, when you start the calculator in your desktop environment, a Bash process is created. In summary, thePIDholds a number based unique ID for a given running app (i.e. process), whereas thePPIDfor any given running tool (i.e. process) stores theParent PIDof the process which started this new app, hence the term ‘Parent’....

January 29, 2021 · 2 min · 347 words · Megan Roth

Why Building a PC Isn't Worth It Right Now

But at the moment, that’s not really true. So, we’re in a rare situation. What the Heck’s Going On? So, what’s with the crunch on parts? There are a few different factors. It’s a big shift. We’re also seeing some dramatic increases in computer power. If everything were normal, it would be a really exciting to be a PC gamer. The more powerful your rig, the more coins it’s possible for you to mine....

January 29, 2021 · 2 min · 268 words · Mark Wright