---
title: "Bash Made Better With Shopt"
description: "1.Enable automatic typo correction for directory names shopt -s cdspell Testing hemanth@ubuntu:/var/log$ cd /tp /tmp in JS."
url: "https://h3manth.com/scribe/bash-made-better-shopt/"
canonical_url: "https://h3manth.com/scribe/bash-made-better-shopt/"
markdown_url: "https://h3manth.com/scribe/blog/bash-made-better-shopt.md"
publishDate: "2009-12-24T00:00:00.000Z"
author: "Hemanth HM"
category: "linux"
tags: ["ubuntu","bash"]
word_count: 74
reading_time_minutes: 1
x_markdown_tokens: 238
content_signal: "ai-train=yes, search=yes, ai-input=yes"
---

# Bash Made Better With Shopt

> 1.Enable automatic typo correction for directory names shopt -s cdspell Testing hemanth@ubuntu:/var/log$ cd /tp /tmp in JS.

**1.Enable automatic typo correction for directory names** `shopt -s cdspell` _Testing_ ` hemanth@ubuntu:/var/log$ cd /tp /tmp hemanth@ubuntu:/tmp$`

hemanth@ubuntu:/$ cd /hom /home hemanth@ubuntu:/home$

hemanth@ubuntu:/home$ cd /mt /mnt hemanth@ubuntu:/mnt$ **2.Enable ** to expand files recursively ( >=bash-4.0)** `shopt -s globstar` **3.Avoiding history file to be overwritten** `shopt -s histappend` **4.Enable cd by variable names** `shopt -s cdable_vars **5.Bash autocomplete case insensitive search** `shopt -s nocaseglob` **6.Auto cd on ~ to /home/user ( >=bash-4.0)** `shopt -s autocd``
