
me - A Terminal You Feel at Home In
Aliases in .bashrc are the first thing people write in bash. But once there are a lot of them, they start to conflict, don't work in scripts, get forgotten after a month and silently break after updates.
All posts under tag "Shell"

Aliases in .bashrc are the first thing people write in bash. But once there are a lot of them, they start to conflict, don't work in scripts, get forgotten after a month and silently break after updates.

In this guide, we'll write a universal backup script in Bash that uses the tar utility to create archives with files from local or remote hosts, perform rotation of old backups, encrypt them on the fly, and monitor disk space 😌.

If you work frequently with hosts via Ansible, typing their names in full quickly becomes tedious or you end up opening the inventory to copy a name. It would be nice to get a list of available hosts by pressing Tab.

In this note, we will briefly look at a few simple ways to build a config from a Bash script using here document, here string, and envsubst.

A regularly updated collection of complex and long shell commands 💻

A regularly updated collection of useful shell snippets 💻.

In this short note, we will write a Bash script that moves the mouse pointer one pixel and back at a specified interval. This is useful if your desktop is regularly locked because there is no user activity😉.

In this note, I have put together a small roadmap for those who want to learn programming in the Bash shell language.

Shebang is the #! sequence at the beginning of an executable file that tells the system which program should interpret this script📝.
Enter keywords to search articles