Friday, June 2, 2023

shopt command magic

 To auto correct directory names on cd :- shopt -s cdspell

To use "directory name" as "cd directory_name" :- shopt -s autocd 

To unset shopt commands :- shopt -u cdspell   and shopt -u autocd 

To make shopt changes permanent :- add shopt -s cdspell and shopt -s autocd in ~/.bashrc script 

To show all set parameters of shopt command:-

Important options:-  

shopt -s cdspell (-s set) 

shopt -u cdspell (-u unset) 

and shopt -p (print all option)




No comments:

Post a Comment

opatchauto

# Log in as root su - root # Execute opatchauto against the unzipped patch directory /u01/app/19.0.0/ grid /OPatch/opatchauto apply /tmp/pat...