Quantcast
Channel: Shell Tips!
Browsing all 55 articles
Browse latest View live
↧

What is the Best Way to Count Files in a Directory?

Learn how to count the number of files in a directory using the Linux command line ls, find, and a native bash shell solution with globs and arrays.

View Article


What is the Right Way to do Bash Loops?

Looping over a list of numbers or words is a building block in shell scripts. Learn how to write Bash loops, including for loop, while loop, and until loop.

View Article


How To Create Simple Menu with the Shell Select Loop?

The select loop is not a regular shell loop. It can be used in Bash to generate a simple menu from which a user can select numbered options.

View Article

8 Tips to Get the Most of an Old Windows XP

8 command line tips to get the most value of your old Windows XP, Windows Server 2003, and others.

View Article

The Complete How To Guide of Bash Functions

Learn how to write shell scripts with bash functions. This guide includes examples and best practices on how to define, call, and debug functions in bash.

View Article


The Most Useful Bash Shortcuts That You Will Want To Use

A detailed review of the most useful Terminal and Bash shortcuts to improve your productivity when typing command-lines and how to customize the ones you don't like.

View Article

How To Make A Custom Bash Shell Prompt

Learn how to customize your shell prompt and the specificity of the Bash Prompt variables PROMPT_COMMAND, PROMPT_DIRTRIM, PS0, PS1, PS2, PS3, and PS4.

View Article

A Complete Guide to the Bash Environment Variables

A complete guide on the Linux Bash environment variables with details on how to set, unset, and use the specials shell variables or define custom environment variables.

View Article


5 Simple Steps On How To Debug a Bash Shell Script

Learn how to quickly debug scripts in Bash with those 5 simple steps that use some of the Bash shell special properties.

View Article


Disclaimers & Contacts

View Article

How to use Microsoft PowerShell to boost your tasks automation journey

Introduction to tasks automation with Microsoft PowerShell and PowerShell Core. Learn some essentials cmdlet and how to create and execute PowerShell scripts.

View Article

Find, Filter, and Count Text: How to become a badass with Grep

View Article

Top 10 Bash Pitfalls You Don't Want to Make

This blog post provides an informative guide to common pitfalls in GNU Bash shell and offers practical tips and solutions for avoiding or resolving them.

View Article


How to Master String Pattern Matching using Bash Character Classes

Exploring the power of GNU bash character classes for efficient pattern matching in regular expressions, with an example script to generate an ASCII table.

View Article

Understanding Common Error Messages

Learn about various error messages that are specific to the Bash shell on Linux, along with illustrative examples of scripts that might produce these errors, and how to resolve them.

View Article

Browsing all 55 articles
Browse latest View live