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

Delete old files by the last access date

Full example on how to delete files based on their creation date using a batch script on Windows XP. This post cover the basics of using scripts arguments in batch, parsing dates, and manipulating files.

View Article


Raid 5 Monitoring on Dell Power Edge 2650 with afacli

Case study on monitoring a Raid 5 array on Dell PowerEdge 2650 with a PERC3/Di by using afacli on Debian.

View Article


How to manage an idle ssh connection ?

Quick and simple tips on how to handle an idle remote ssh connection from your terminal.

View Article

Removing ^M in imported Windows files

Learn how to quickly and easily handle files with newline and carriage return between linux, mac, and windows. This post will explain how to remove or replace the often annoying ^M character.

View Article

Vi and Vim Quick References: A One Page Cheat Sheet

A one-page cheat sheet of Vi/Vim quick references to speed-up your productivity with your favorite terminal based text editor. Great for casual Vi and Vim users to daily coders.

View Article


How To Use Bash Wildcards for Globbing?

Improve your productivity at the Linux command line and in Bash scripting with globbing by using Wildcards as glob patterns or extended glob expressions.

View Article

Fine tuning a Linux Apache MySQL PHP (LAMP) server

Legacy post discussing how to tune a production system using Linux, Apache, MySQL, and PHP (aka LAMP).

View Article

How to Reload or Change your current Shell?

Learn the basic steps to reload your Linux shell to apply your recent configurations changes. This post cover the POSIX exec builtin command in Bash and the GNOME shell.

View Article


Two common errors while starting Apache server on Linux

Legacy post discussing some common errors when starting or running an Apache server on Linux.

View Article


Bash Quick References: A One Page Cheat Sheet

A one-page of Bash quick references, aka cheat sheet, to help you script faster and better. Good material from newbies to regular basher.

View Article

A Quick Guide on How to Use Bash Alias

This post cover the Bash builtin commands alias and unalias. You will often find Bash alias in a customized .bashrc to improve your shell command-line workflow.

View Article

Choosing a filesystem for your Linux/Unix server

Review of various filesystems available on Linux and how to choose one for your workstation or production server.

View Article

Bind 9.5.0 - Patch dlz MySQL 5 for Auto Reconnect

Legacy post addressing connectivity issue from a Bind 9 server with the dlz MySQL driver to a MySQL 5 backend server. This post provides appropriate patch for the given software versions.

View Article


How to flush your DNS Cache on Mac OS X?

Learn how to resolve a bad DNS entry returned by your Mac local cache due to a long TTL DNS and how to purge your Mac OS DNS cache for your specific Mac OS version, all this right from the command line.

View Article

How To Generate Sequences of Letters or Numbers?

Learn how to use seq command line and the bash braces expansion to generate sequences of letters or numbers in your shell scripts.

View Article


Using losetup and dd to secure sensitive data

Legacy post on using dd and losetup to encrypt a block device and secure sensitive data.

View Article

Math Arithmetic: How To Do Calculation in Bash?

Learn how to do math arithmetic with integer and floating-point in Bash. Includes addition, subtraction, division, multiplication, and also floating-point precision.

View Article


Linux sysctl configuration and tuning script

Legacy post providing a custom script to auto-tune your Linux kernel and sysctl options based on your server specifications.

View Article

Download files from a Bash Shell

Introduction to the essential function of downloading files directly from a Bash script. This is a common task in any kind of backup/restore automation or in crawling scenarios to retried some kind of...

View Article

sudo: sorry, you must have a tty to run sudo

Learn what is a tty and how to solve 'sudo: sorry, you must have a tty to run sudo' error when using ssh to execute a sudo remote command.

View Article
Browsing all 55 articles
Browse latest View live