Skip to content
Archive of posts tagged programming

bash prompts — some good links

Here are some pretty good links on the subject. Since there are already so many blog posts, does not make sense to add one more http://tldp.org/HOWTO/Bash-Prompt-HOWTO/c816.html http://www.gilesorr.com/bashprompt/prompts/ https://bbs.archlinux.org/viewtopic.php?id=84386 Bash themes – http://onlamp.com/onlamp/2006/02/02/bash_themes.html Related articles set prompts for bash Osx? (stackoverflow.com) Difference between Bash shell and Bash terminal? (stackoverflow.com) The Hollywood Reporter Rounds Up Jessica Chastian [...]

15 Linux Bash History Expansion Examples You Should Know

Here is a nice link on BASH History Expansion. There are lot of examples in this page and some of them might be quite useful. But here are my list of favourites: !! This is probably the most used one by me. This will repeat the last command. And this works even in conjunction with [...]

Oracle Select the top 5 queries

Here are one sql script that I found some time back. This will be listing the top 5 SQL queries in Oracle. SET linesize 300 SET PAGESIZE 200 select * from (select sql_text, sql_id, elapsed_time, cpu_time, user_io_wait_time from sys.v_$sqlarea order by 5 desc) where rownum < 6; quit; Related articles SQL Fiddle (thinkvitamin.com) New Oracle [...]