≡ Menu

FAQ

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; [...]

{ 7 comments }

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, [...]

{ 3 comments }

How to Find and Delete Empty Directories and Files in Unix

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 [...]

{ 14 comments }

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 -> [...]

{ 12 comments }

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. [...]

{ 28 comments }

Get Source Code for any Linux Command

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 [...]

{ 10 comments }

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 [...]

{ 10 comments }

How To Change Wallpaper in Fluxbox Window Manager

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 [...]

{ 2 comments }