Question: How do I executed PostgreSQL Commands inside a Linux / UNIX shell script? Answer: With the help of the psql interactive terminal, you can execute the psql commands from the shell script. For this purpose, you should enable the password less login by pg_hba.conf, or .pgpass. Syntax psql DBNAME USERNAME << EOF statement 1; [...]
FAQ
Question: I would like to understand the basics of how to write and execute Haskell program on Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World Haskell program and execute haskell program on Linux or Unix OS. Also, [...]
Question: How do I locate empty directories that doesn’t contain any files? Also, how do I find all empty files ( zero byte files ) in Linux? Answer: You can use unix find command to get a list of all empty files and directories as explained below. Also, refer to our earlier articles about unix [...]
Question: How do I set multiple home pages in firefox? i.e I would like to open more than one website automatically when the firefox starts. Answer: Please follow the steps mentioned below to open multiple tabs in Firefox during startup. Step 1: Go to Firefox Options Window Go to: Tools menu -> Option menu-item -> [...]
Question: I would like to understand the basics of how to write and execute Cobol program on Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World Cobol program and execute cobol program on Linux or Unix OS. 1. [...]
Question: How do I get source code of any Linux command? Answer: For Debian family Linux distributions, you can get source code for any Linux commands using one of the two methods mentioned below. Method 1: Get Source Code Using apt-get Step 1: Add a Source URI to sources.lst $ cat /etc/apt/sources.list deb-src http://ftp.de.debian.org/debian lenny [...]
Question: I would like to understand the basics of how to write, compile and execute a Java program on UNIX / Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World Java program and how to compile *.java program [...]
Question: How do I change the desktop background wallpaper in fluxbox window manager? Answer: We discussed fluxbox earlier in an introduction to the fluxbox window manager and how to shutdown the system from fluxbox window manager. In this article we’ll see how to change the wallpaper in fluxbox by using a bash script or by [...]