Skip to content

Latest commit

 

History

History
191 lines (143 loc) · 19 KB

bash.md

File metadata and controls

191 lines (143 loc) · 19 KB

drawing

Ready to dig deep into your Linux filesystem? An exploratory look at some of the lesser-known features of /proc, /sys/, and /dev.

If you're like me you create scripts to automate things all the time. While you can do quite a bit with bash, it's just a lot easier to use your primary language--in this case TypeScript. With just a few tricks you can start writing your scripts in TypeScript.

Once upon a time, in a land far, far away (Africa), a boy of great courage dared to use Linux. This is his story.

Today, we will learn about the basics of bash scripting for network engineers.

The problems with promo-culture

Convert files' and folders' structures to Bash Scripts with NodeJS.

How to know the difference in shell and terminal

If you are looking for a way to use Bash shell, or Unix shell commands within Javascript to automate your workflow, then ShellJS is the perfect library for you.

If your work needs you to use Linux, these Bash Tips can save you plenty of time and effort in your day-to-day operations while streamlining your processes.

Do you know when you install Git Bash on windows what exactly you are installing? Git or Bash? In this article, I will explain everything about them.

chmod changes who can read and write your files (!!) which is probably something you want to keep control over. the basics:

Bash is a language that is quite useful for automation no matter what language you write in. Bash can do so many powerful system level tasks. Even if you are on windows these days you are likely to come accross bash inside a cloud VM, Continuous Integration, or even inside of docker.

Life is too short to start our simulator using conventional ways. Here is the hack.

Amazon web services (AWS) is a powerful platform for almost every webservice you can imagine. With AWS API Gateway and Lambda you are able to create REST API’s with ease! API gateway is enables you to create the API. Lambda lets you execute code when the API is invoked. This code can be in many programming languages like Python or Node.JS.

Hi, happy to join your community. This is my first post, so I start from the simple one, but useful. Maybe you don't know about it yet.

In this article, you'll learn how to connect to an RDS server through a bastion server in Bash using an SSH tunnel.

Are you frustrated to run same scripts again & again before resuming your work?? Here is a simple solution to automate starting those scripts before you start.

As good as it is, having your own blog outside of Medium is still not a bad idea. It enables you to have another channel you can totally own to communicate with your readers. And who knows, no company can last forever, what if Medium got acquired by some other company or something even worse happen. You can still sleep well at night knowing you won’t lose all your articles.

If you have worked with software systems long enough you have surely worked with crons. Cron is a time-based task scheduler in UNIX-like operating systems. We use to run some task/script periodically, for example, every day at 9:30 AM.

I spend a lot of time working on the bash command line, and I've come to highly value the availability of my custom set of shortcuts, preferences, and tricks, r

With Bash, developers can do lots of computer processes right from the terminal without ever having to use their mouse or keyboard for interaction. Learn Bash.

Send visual feedback and reminders from scripts, using notify-send and at commands on Linux. Also how to get MacOS to do it as well, through some jury-rigging.

Learning the basics of the Linux Command Line helps users get the most out of their machine while streamlining the experience of using the open-source OS

Normal development flow requires continuous patching the production database with local changes normally made automatically by the orm software, this method is not perect but deceptively simple, all we'll use is standard Unix commands, and is good enough for us.

I am a lazy DevOps Engineer. So whenever I came across the same task more than 2 times I automate that. Although now we have many automation tools, still the first thing that hit into our mind for automation is bash or shell script.

Today, I’m proud to officially introduce Warp, a from-first-principles reinvention of the terminal to make it work better for developers and teams.

I have just released an open-source introduction to Bash scripting ebook/guide that will help you learn the basics of Bash scripting and start writing awesome Bash scripts that will help you automate your daily SysOps, DevOps, and Dev tasks.

Microsoft recently joined hands with Canonical (the parent company of Ubuntu) to bring the entire userland into Windows, minus the Linux Kernel. So as a result, you, as a developer, get access to the whole range of Ubuntu command-line tools and utilities with bash shell integrated with Windows. Let’s look at how we can install Bash on Windows 10 and take full advantage of the new feature.

Can you use your command-line shell history as a second brain? Should you? Here are some ideas to help leverage the humble Ctrl-r key to supercharge your work.

In part one, I have shown how to create a remote development using DigitalOcean and rsync. In part two, I will show how to automate the entire process using Bash script.

Using ChatGPT to help write a bash script to download YouTube videos

create a beautiful custom shell setup on your Linux/macOS with oh-my-zsh

At Debricked we have been using Symfony for our web backend for a while now. It has served us very well and when they announced the Messenger component back in Symfony 4.1, we were eager to try it out. Since then we have used the component for asynchronous queuing emails.

Few things are more satisfying to me than one elegant line of Bash that automates hours of tedious work. As part of some recent explorations into automatically re-creating my laptop with Bash scripts (post to come!), I wanted to find a way to easily clone my GitHub-hosted repositories to a new machine. After a bit of digging around, I wrote a one-liner that did just that. Then, in the spirit of not putting all our eggs in the same basket, I wrote another one-liner to automatically create and push to GitLab-hosted backups as well. Here they are.

Creating a Dynamic Github Profile With Github Actions and Bash. Parsing RSS and XML in Bash.

For years I have been frustrated and I wanted to find a proper way of sorting my pictures. I had photos coming from several devices, and made manual copies on my laptop and on my external hard drive. I ended up with tons of folders and a lot of duplicates.

Most of the programmers use programming languages such as C,C++, Python, Javascript. They use shell for many tasks . But most of them don’t know that they can program with shell for automating stuff that we find ourselves doing over and over again.

💻 Command Line:

Introduction

Photo by Yancy Min on Unsplash

In this article, you will walk through the creation of a simple Bash shell script to send messages to Telegram messenger using the Curl command. Then you will use this script to send a notification on every ssh login into your server.

Linux shell scripting has a little-seen parameter expansion operator that tests if a variable exists or is null.

Linux follows tough rules when it comes to permission. Being a root user or sudo user gives you permission to do almost anything which normal user don’t have. Several commands need sudo keyword to run and each time you try to run sudo, Linux asks for a password, today we will configure a passwordless sudo.

If you are a Python programmer, it is quite likely that you have experience in shell scripting. It is not uncommon to face a task that seems trivial to solve with a shell command. Therefore, it is useful to be familiar with how to call these commands efficiently from your Python code and know their limitations.

For some time now I've been using zsh as my default Unix shell, which is an extended Bourne shell with many improvements, including some features from bash, ksh and tcsh. One of my favorite shells is fish shell. It's easy to set-up and many of the features that I use comes pre-installed, as it is not POSIX supported it has a much readable (fish) syntax for scripting.

Introduction

Amy Tom chats with Michael Nitschinger, a Software Architect at Couchbase, and Jonathan D. Turner (AKA JT), the Co-Creator of NuShell, about Shell scripting.